package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsTeachingClassMapper;
import com.ruoyi.system.domain.CcsTeachingClass;
import com.ruoyi.system.service.ICcsTeachingClassService;

/**
 * 教学班级管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
@Service
public class CcsTeachingClassServiceImpl implements ICcsTeachingClassService 
{
    @Autowired
    private CcsTeachingClassMapper ccsTeachingClassMapper;

    /**
     * 查询教学班级管理
     * 
     * @param id 教学班级管理主键
     * @return 教学班级管理
     */
    @Override
    public CcsTeachingClass selectCcsTeachingClassById(Long id)
    {
        return ccsTeachingClassMapper.selectCcsTeachingClassById(id);
    }

    /**
     * 查询教学班级管理列表
     * 
     * @param ccsTeachingClass 教学班级管理
     * @return 教学班级管理
     */
    @Override
    public List<CcsTeachingClass> selectCcsTeachingClassList(CcsTeachingClass ccsTeachingClass)
    {
        return ccsTeachingClassMapper.selectCcsTeachingClassList(ccsTeachingClass);
    }

    /**
     * 新增教学班级管理
     * 
     * @param ccsTeachingClass 教学班级管理
     * @return 结果
     */
    @Override
    public int insertCcsTeachingClass(CcsTeachingClass ccsTeachingClass)
    {
        return ccsTeachingClassMapper.insertCcsTeachingClass(ccsTeachingClass);
    }

    /**
     * 修改教学班级管理
     * 
     * @param ccsTeachingClass 教学班级管理
     * @return 结果
     */
    @Override
    public int updateCcsTeachingClass(CcsTeachingClass ccsTeachingClass)
    {
        return ccsTeachingClassMapper.updateCcsTeachingClass(ccsTeachingClass);
    }

    /**
     * 批量删除教学班级管理
     * 
     * @param ids 需要删除的教学班级管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsTeachingClassByIds(Long[] ids)
    {
        return ccsTeachingClassMapper.deleteCcsTeachingClassByIds(ids);
    }

    /**
     * 删除教学班级管理信息
     * 
     * @param id 教学班级管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsTeachingClassById(Long id)
    {
        return ccsTeachingClassMapper.deleteCcsTeachingClassById(id);
    }
}
